#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
#include<stdlib.h>
#include<stdbool.h>
#include<Windows.h>


typedef struct goods
{
	int num;
	char name[31];
	int amount;
	double price;
	struct goods* prev;
	struct goods* next;
}goods;

void menu();

goods* Creat(int x, char* s, int n, double p);

void print_1(goods* phead,int n);

goods* Init();

void Destory(goods* phead);

void Print(goods* phead);

goods* Find(goods* phead, int x);

void Push(goods* phead, int x, char* s, int n, double p);

void Erase(goods* pos);

bool Empty(goods* phead);

///////////////////////////////////////////////////////

void Exit(goods* phead);

void print(goods* phead);

void push(goods* phead);

void erase(goods* phead);

void find(goods* phead);

void change(goods* phead);